package kr.hkit.androidcomplete02.ch12;

import kr.hyunist.androidcomplete01.*;
import android.app.*;
import android.content.*;
import android.os.*;
import android.view.*;

public class Ch12AMainActivity extends Activity {
		@Override
		protected void onCreate(Bundle savedInstanceState) {
			super.onCreate(savedInstanceState);
			setContentView(R.layout.ch12_amain);
		}
		
		public void mOnClick(View v){
			Intent intent = null;
			switch(v.getId()){
			
			case R.id.ch12_btn01:
				intent = new Intent(this, ListViewEx.class);
				break;
			
			case R.id.ch12_btn02:
				intent = new Intent(this, ListViewResourceEx.class);
				break;
			
			case R.id.ch12_btn03:
				intent = new Intent(this, ListViewAddDelEx.class);
				break;
				
			case R.id.ch12_btn04:
				intent = new Intent(this, ListViewAddDelMultipleEx.class);
				break;	
				
			case R.id.ch12_btn05:
				intent = new Intent(this, CustomeAdapterViewEx.class);
				break;	
				
			case R.id.ch12_btn06:
				intent = new Intent(this, CustomeAdapterView02Ex.class);
				break;	
				
			case R.id.ch12_btn07:
				intent = new Intent(this, ListOnlyEx.class);
				break;	
				
			case R.id.ch12_btn08:
				intent = new Intent(this, SpinnerEx.class);
				break;	
				
			case R.id.ch12_btn09:
				intent = new Intent(this, GridViewEx.class);
				break;	
				
			case R.id.ch12_btn10:
				intent = new Intent(this, SimpleCursorAdapterEx.class);
				break;	
			}	
			
			startActivity(intent);
			
		}
}
